package com.adingxiong.cft.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

/**
 * @ClassName LoginParam
 * @Description TODO
 * @Author xiongchao
 * @Date 2020/9/22 17:06
 **/
@Data
@EqualsAndHashCode(callSuper = false)
public class LoginParam {

    @NotEmpty
    @ApiModelProperty(value = "用户名")
    private String username;

    @NotEmpty
    @Size(min = 4,max = 16,message = "密码长度为4-16位")
    @ApiModelProperty(value = "密码")
    private String password;
}
